package com.itheima.demo03.DateFormat;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

public class Demo02Test {
    public static void main(String[] args) throws ParseException {
        Scanner sc = new Scanner(System.in);
        String text = sc.next();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        Date parse = sdf.parse(text);
        long time = parse.getTime();
        Date date = new Date();
        long hm = date.getTime() - time;
        long day = hm / 1000 / 60 / 60 / 24;
        System.out.println(day);
    }
}
